package com.ruoyi.book.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 章节列表对象 book_chapter
 * 
 * @author ruoyi
 * @date 2024-08-05
 */
public class Chapter extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long fictionId;

    /** 章节标题 */
    @Excel(name = "章节标题")
    private String chapterTitle;

    /** 章节内容 */
    @Excel(name = "章节内容")
    private String content;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;

    /** 章节url */
    @Excel(name = "章节url")
    private String chapterUrl;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFictionId(Long fictionId) 
    {
        this.fictionId = fictionId;
    }

    public Long getFictionId() 
    {
        return fictionId;
    }
    public void setChapterTitle(String chapterTitle) 
    {
        this.chapterTitle = chapterTitle;
    }

    public String getChapterTitle() 
    {
        return chapterTitle;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setSort(Integer sort)
    {
        this.sort = sort;
    }

    public Integer getSort()
    {
        return sort;
    }
    public void setChapterUrl(String chapterUrl) 
    {
        this.chapterUrl = chapterUrl;
    }

    public String getChapterUrl() 
    {
        return chapterUrl;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fictionId", getFictionId())
            .append("chapterTitle", getChapterTitle())
            .append("content", getContent())
            .append("sort", getSort())
            .append("chapterUrl", getChapterUrl())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
